package com.lagou.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/*
* 课时信息类
* */
@Data
public class Course_Lesson  implements Serializable {
  public int getId() {
    return id;
  }

  public void setId(int id) {
    this.id = id;
  }

  public int getCourse_id() {
    return course_id;
  }

  public void setCourse_id(int course_id) {
    this.course_id = course_id;
  }

  public int getSection_id() {
    return section_id;
  }

  public void setSection_id(int section_id) {
    this.section_id = section_id;
  }

  public String getTheme() {
    return theme;
  }

  public void setTheme(String theme) {
    this.theme = theme;
  }

  public int getDuration() {
    return duration;
  }

  public void setDuration(int duration) {
    this.duration = duration;
  }

  public int getIs_free() {
    return is_free;
  }

  public void setIs_free(int is_free) {
    this.is_free = is_free;
  }

  public int getOrderNum() {
    return orderNum;
  }

  public void setOrderNum(int orderNum) {
    this.orderNum = orderNum;
  }

  public int getStatus() {
    return status;
  }

  public void setStatus(int status) {
    this.status = status;
  }

  public String getCreate_time() {
    return create_time;
  }

  public void setCreate_time(String create_time) {
    this.create_time = create_time;
  }

  public String getUpdate_time() {
    return update_time;
  }

  public void setUpdate_time(String update_time) {
    this.update_time = update_time;
  }

  public int getIsDel() {
    return isDel;
  }

  public void setIsDel(int isDel) {
    this.isDel = isDel;
  }

  public Course_Section getCourse_section() {
    return course_section;
  }

  public void setCourse_section(Course_Section course_section) {
    this.course_section = course_section;
  }

  public String getStart_img_url() {
    return start_img_url;
  }

  public void setStart_img_url(String start_img_url) {
    this.start_img_url = start_img_url;
  }

  public String getText_content() {
    return text_content;
  }

  public void setText_content(String text_content) {
    this.text_content = text_content;
  }

  public String getMarkdown_text_content() {
    return markdown_text_content;
  }

  public void setMarkdown_text_content(String markdown_text_content) {
    this.markdown_text_content = markdown_text_content;
  }

  public String getTranscode() {
    return transcode;
  }

  public void setTranscode(String transcode) {
    this.transcode = transcode;
  }

  public String getResource_url() {
    return resource_url;
  }

  public void setResource_url(String resource_url) {
    this.resource_url = resource_url;
  }

  public int getLast_operator_id() {
    return last_operator_id;
  }

  public void setLast_operator_id(int last_operator_id) {
    this.last_operator_id = last_operator_id;
  }

  public String getAli_file_url() {
    return ali_file_url;
  }

  public void setAli_file_url(String ali_file_url) {
    this.ali_file_url = ali_file_url;
  }

  public String getAli_file_dk() {
    return ali_file_dk;
  }

  public void setAli_file_dk(String ali_file_dk) {
    this.ali_file_dk = ali_file_dk;
  }

  public String getAli_file_edk() {
    return ali_file_edk;
  }

  public void setAli_file_edk(String ali_file_edk) {
    this.ali_file_edk = ali_file_edk;
  }

  public String getAli_file_vid() {
    return ali_file_vid;
  }

  public void setAli_file_vid(String ali_file_vid) {
    this.ali_file_vid = ali_file_vid;
  }

  public int getIs_timing_publish() {
    return is_timing_publish;
  }

  public void setIs_timing_publish(int is_timing_publish) {
    this.is_timing_publish = is_timing_publish;
  }

  public String getPublish_time() {
    return publish_time;
  }

  public void setPublish_time(String publish_time) {
    this.publish_time = publish_time;
  }

  //课时id
  @JSONField(ordinal = 1)
  private int id;

  //课程id
  @JSONField(ordinal = 2)
  private int course_id;

  //章节id
  @JSONField(ordinal = 3)
  private int section_id;

  //课时主题
  @JSONField(ordinal = 4)
  private String theme;

  //课程时长
  @JSONField(ordinal = 5)
  private int duration;

  //是否免费
  @JSONField(ordinal = 6)
  private int is_free;

  //课时排序
  @JSONField(ordinal = 7)
  private int orderNum;

  //课时状态,0-隐藏，1-未发布，2-已发布
  @JSONField(ordinal = 8)
  private int status;

  //创建时间
  @JSONField(ordinal = 9)
  private String create_time;

  //修改时间
  @JSONField(ordinal = 10)
  private String update_time;

  //是否删除
  @JSONField(ordinal = 11)
  private int isDel;

  //添加一个Course_Section类型的属性
  private Course_Section course_section;

  @Override
  public String toString() {
    return "Course_Lesson{" +
            "id=" + id +
            ", course_id=" + course_id +
            ", section_id=" + section_id +
            ", theme='" + theme + '\'' +
            ", duration=" + duration +
            ", is_free=" + is_free +
            ", orderNum=" + orderNum +
            ", status=" + status +
            ", create_time='" + create_time + '\'' +
            ", update_time='" + update_time + '\'' +
            ", isDel=" + isDel +
            '}';
  }

  @JSONField(serialize = false)
  private String start_img_url; //课时背景图
  @JSONField(serialize = false)
  private String text_content;  //课时内容
  @JSONField(serialize = false)
  private String markdown_text_content; //课时内容（markdown文本）
  @JSONField(serialize = false)
  private String transcode; //转码集合
  @JSONField(serialize = false)
  private String resource_url;  //课程资源路径
  @JSONField(serialize = false)
  private int last_operator_id; //最后操作者id
  @JSONField(serialize = false)
  private String ali_file_url;  //阿里云视频文件URL
  @JSONField(serialize = false)
  private String ali_file_dk; //阿里云视频文件的DK
  @JSONField(serialize = false)
  private String ali_file_edk;  //阿里云视频文件的EDK
  @JSONField(serialize = false)
  private String ali_file_vid; //阿里云视频资源文件ID
  @JSONField(serialize = false)
  private int is_timing_publish; //是否定时发布
  @JSONField(serialize = false)
  private String publish_time;  //定时发布时间

}
